package com.wzw.util;

public enum ProjectCode {

	TCJH("1", "天才计划-天才基因早发现", "/tcjh/index.jsp"),
	TCXB("2", "天才计划-天才宝贝早行动", "/tcjh/tcxb/index.htm");
	
	private final String value;
	
	private final String name;
	
	private final String url;
	
	ProjectCode(String value, String name, String url) {
		this.value = value;
		this.name = name;
		this.url = url;
	}
	
	public String getValue() {
		return value;
	}
	
	public String getName() {
		return name;
	}
	
	public String getUrl() {
		return url;
	}
	
	public static ProjectCode getProjectCode(String id) {
		for(int i=0; i<ProjectCode.values().length; i++) {
			if(ProjectCode.values()[i].getValue().equals(id)) {
				return ProjectCode.values()[i];
			}
		}
		return null;
	}
}
